﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HDAPI;
using LitJson;

public partial class sample_devicetype : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HDBase hd = new HDBase(Request);
        Response.Write("<b>Device type</b><br/>");
        if (hd.detectAll())
        {
            JsonData data = hd.getDetectAll();
            Response.Write("isMobile:" + hd.isMobile() + "<br/>");
            Response.Write("isConsole:" + hd.isConsole() + "<br/>");
            Response.Write("isTablet:" + hd.isTablet() + "<br/>");
        }
    }
}
